package day02.io;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @ClassName FISDemo
 * @Description TODO
 * @Author xinghaiyang
 * @Date 2023/3/16 15:42
 * @Version 1.0
 *
 * 文件输入流
 **/
public class FISDemo {
    public static void main(String[] args) throws IOException {
        /*使用文件输入流从文件中读取字节数据*/
        FileInputStream fis = new FileInputStream("fos.dat");
        int d = fis.read();
        System.out.println(d);
        d = fis.read();
        System.out.println(d);
        d = fis.read();
        System.out.println(d);
        fis.close();
    }
}
